<template>
  <div>
     <p>{{value}}</p>
     <button @click="$emit('input',fn(9))">按钮</button>
   </div>
</template>
 
<script>
export default {
  name: "MyCeshi",
  components: {},
  props: {
    value:{
        type:Number,
        required:true
    }
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    fn(num){
        return num+this.value
    }
  }
};
</script>

<style scoped>
     
</style>